FROM python:3-slim

RUN pip install snmpsim -i https://mirrors.aliyun.com/pypi/simple/

RUN adduser --system snmpsim

# ADD data /usr/local/snmpsim/data

EXPOSE 161/udp

CMD snmpsimd.py --agent-udpv4-endpoint=0.0.0.0:161 --process-user=snmpsim --process-group=nogroup $EXTRA_FLAGS
